package com.koron.order.question.service;

import com.github.pagehelper.PageInfo;
import com.koron.bean.query.PageQuery;
import com.koron.order.question.bean.po.QuestionPo;
import com.koron.order.question.bean.query.QuestionQuery;
import com.koron.order.question.bean.vo.QuestionVo;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

/**
 * 重大问题上报单(Question)表服务接口
 *
 * @author zhouj
 * @since 2022-01-14 10:15:29
 */
public interface QuestionService {

    QuestionPo insertOrUpdate(SessionFactory factory, QuestionPo question);

    int update(SessionFactory factory, QuestionPo question);

    int deleteById(SessionFactory factory, String id);

    QuestionPo queryById(SessionFactory factory, String id);

    PageInfo<QuestionVo> queryPageList(SessionFactory factory, QuestionQuery questionQuery, PageQuery pageQuery);

    List<QuestionVo> queryList(SessionFactory factory,QuestionQuery questionQuery);

    int submitQuestion(SessionFactory factory, String orderId, String status);

}
